<!DOCTYPE html>
<#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
<#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
<#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
<html>
<head>
  <meta charset="utf-8">
  <title>压力元件信息</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
  <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
  <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
  <script type="text/javascript">
    var __ctx = "${ctx}";

  </script>
  <style>
    .qbdms-TBinformation{margin-left: 0;font-size: 15px}
  </style>
</head>
<body class="listBody">
<div class="qbdms-bodyDiv">
  <div class="qbdms-backDiv">
    <div class="layui-table-view-body" style="padding: 0 24px 24px;">
      <div class="qbdms-formTitle" style="border-bottom: 1px solid #E5F0FF">压力元件信息 <i
          class="qbdms-returnOn closeWindow">返回</i></div>
      <form class="layui-form treeFormPreview"
            requrl="${ctx}/qbdms/wQbdPressureElementInfo/get"
            lay-filter="wQbdPressureElementInfoDataForm" style="bottom: 30px">
        <@fillDept.dept css="dragInfo temSpace" id="tbxx"/>
        <div class="layui-row">
          <div style="width: 65%">
            <label class="layui-form-label qbdms-label" title="批次号">批次号<span
                style="color: red;">*</span></label>
            <div class="layui-input-block qbdms-input">
              <input type="text" placeholder="请输入" autocomplete="off"
                     class="layui-input " lay-verify="required|num" name="batchNumber"
                     lay-reqtext="批次号是必填项" maxlength="8">
            </div>
          </div>

          <div style="width: 45%">
            <label class="layui-form-label qbdms-label" title="密级">密级<span
                style="color: red;">*</span></label>
            <div class="layui-input-block qbdms-input">
              <@secSelect.sec_select data_src=1 required=true name="secret"/>
            </div>
          </div>


          <div style="width: 65%">
            <label class="layui-form-label qbdms-label" title="元件类别">元件类别<span
                style="color: red;">*</span></label>
            <div class="layui-input-block qbdms-input">
              <@dicSelect.dic name="componentCategory" verify="required" css="layui-input
              filter-value" search=true nodeKey="yjlb" verify="required" reqtext="元件类别是必填项"/>
            </div>
          </div>


          <div style="width: 65%">
            <label class="layui-form-label qbdms-label" title="企业类别">企业类别<span
                style="color: red;">*</span></label>
            <div class="layui-input-block qbdms-input">
              <@dicSelect.dic name="businessCategory" verify="required" css="layui-input
              filter-value" search=true nodeKey="qylb" verify="required" reqtext="企业类别是必填项"/>
            </div>
          </div>
          <div style="width: 65%">
            <label class="layui-form-label qbdms-label">检测总件数性能检测</label>
            <div class="layui-input-block qbdms-input">
              <input type="text" placeholder="请输入" autocomplete="off"
                     class="layui-input "  name="testSumPerformanceTesting"
                      maxlength="50">
            </div>
          </div>

          <div style="width: 65%">
            <label class="layui-form-label qbdms-label">检测总件数尺寸检测</label>
            <div class="layui-input-block qbdms-input">
              <input type="text" placeholder="请输入" autocomplete="off"
                     class="layui-input "  name="testSumSizeDetection"
                     maxlength="50">
            </div>
          </div>

          <div style="width: 65%">
            <label class="layui-form-label qbdms-label">不合格件数性能检测</label>
            <div class="layui-input-block qbdms-input">
              <input type="text" placeholder="请输入" autocomplete="off"
                     class="layui-input "  name="failedPerformanceTesting"
                     maxlength="50">
            </div>
          </div>

          <div style="width: 65%">
            <label class="layui-form-label qbdms-label">不合格件数尺寸检测</label>
            <div class="layui-input-block qbdms-input">
              <input type="text" placeholder="请输入" autocomplete="off"
                     class="layui-input "  name="failedSizeDetection"
                     maxlength="50">
            </div>
          </div>

        </div>


        <div class="layui-hide">
          <input type="text" name="id" placeholder="请输入" autocomplete="off" class="layui-input "
                 maxlength="50" fieldname="id">
          <input type="text" name="fillman" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="fillman">
          <input type="text" name="fillmanaccount" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="fillmanaccount">
          <input type="text" name="filldept" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="filldept">
          <input type="text" name="filldeptid" placeholder="请输入填写部门id"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="filldeptid">
          <input type="text" name="filldepthospital" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50"
                 fieldname="filldepthospital">
          <input type="text" name="filldepthospitalid" placeholder="请输入二级部门id"
                 autocomplete="off" class="layui-input " maxlength="50"
                 fieldname="filldepthospitalid">
          <input type="text" name="filldate" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="filldate">
          <input type="text" name="fMainunitid" placeholder="请输入主承担单位ID"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="fMainunitid">
          <input type="text" name="tenantId" placeholder="请输入租户Id"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="tenantId">
          <input type="text" name="reportStatusTemp" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50"
                 fieldname="reportStatusTemp">
          <input type="text" name="reportStatus" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="reportStatus">
          <input type="text" name="reportDate" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="reportDate">
          <input type="text" name="reportReason" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="reportReason">
          <input type="text" name="returnmsg" placeholder="请输入"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="returnmsg">
          <input type="text" name="fTechnology" placeholder="组织负责人code"
                 autocomplete="off" class="layui-input " maxlength="50" fieldname="returnmsg">
        </div>



        <div class="layui-form-item" style="margin-top: 48px">
          <p style="text-align: left;margin-left: 145px;">
                    <span id="hideAndShow" style="">
                        <a lay-submit lay-filter="wQbdPressureElementInfo" class="layui-btn btn-n privateSubmit qbdms-oneBtn"
                           requrl="${ctx}/qbdms/wQbdPressureElementInfo/save">提交</a>
                    </span>
            <button type="reset" id="closeWindow" style="margin-left: 10px;"
                    class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">取消
            </button>
          </p>
        </div>



      </form>
    </div>
  </div>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'common', 'laydate', 'jquery','publicMethods','qbdmsForm'], function () {
      var laydate = layui.laydate;
      var $ = layui.jquery;
      var publicMethods=layui.publicMethods;
      var form =layui.qbdmsForm;
      var dateTimeFiledLen = $(".dateTimeFiled");
      for (var i = 0; i < dateTimeFiledLen.length; i++) {
        laydate.render({
          elem: dateTimeFiledLen[i] //指定元素
          , type: 'date'
          , trigger: 'click'
        });
      }
      //关闭当前页面
      $("#closeWindow,.closeWindow").click(function () {
        window.location.href = '${ctx}/qbdms/wQbdPressureElementInfo/view/list';
      });

      var runId = "${runId}";
      if (runId == null || runId == '') {
        $("#hideAndShow").show();
      }
      var common = layui.common;
      form.verify({
        num: function (value) {
          // 如果值为空，不触发校验
          if (value && !new RegExp(/^[1-9]\d*$/).test(value)) return "批次号只能输入非负整数";

        }
      });
      var index = parent.parent.layer.getFrameIndex(window.name);
      common.updateForm({
        name: 'wQbdPressureElementInfoDataForm',
        idValue: "${id}",
        primary: "id",
        updateCallback: function (data) {
          if (common.filterRecord(data)) {
            if ($(".privateSubmit")) {
              $(".privateSubmit").attr("disabled", false).css("pointer-events", "auto");
            }
            layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'}, function (index) {
            layer.close(index);
              window.location.href = '${ctx}/qbdms/wQbdPressureElementInfo/view/list';
            });
          } else {
           layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
          }
          return false;
        }

      });
    });
</script>
</body>
</html>